package com.power.leopard.remote.common.codec;

import com.power.leopard.common.exception.SerializationException;
import com.power.leopard.protocol.DefaultRequest;
import com.power.leopard.protocol.DefaultResponse;
import com.power.leopard.remote.common.domain.InvocationRequest;
import com.power.leopard.remote.common.domain.InvocationResponse;
import com.power.leopard.remote.provider.domain.InvokerContext;

public abstract class DefaultAbstractSerializer implements Serializer {

	public InvocationResponse newResponse() throws SerializationException {
		return new DefaultResponse();
	}

	public InvocationRequest newRequest(InvokerContext invokerContext) throws SerializationException {
		return new DefaultRequest();
	}

}
